checkRequired = function() {
	var t = document.getElementById('t');
	var u = document.getElementById('u');
	if (t.value == '' || u.value == '') {
		window.alert('input title and url.');
		return false;
	}
}
init = function() {
	document.getElementById('aform').onsubmit=checkRequired;
}
onload = init;
